package common.controller;

import org.apache.shiro.SecurityUtils;
import org.apache.shiro.subject.Subject;

import jhunter.web.mvc.controller.BaseController;

public class LoginFormController extends BaseController{

	@Override
	public Object execute() {
		Subject currentUser = SecurityUtils.getSubject();
		if (currentUser.isAuthenticated()) {
			currentUser.logout();
		}
		return form();
	}

}
